1 \section{\class{wxSocketBase
}}\label{wxsocketbase
}
3 \wxheading{Derived from
}
5 \helpref{wxEvtHandler
}{wxevthandler
}
7 % ---------------------------------------------------------------------------
9 % ---------------------------------------------------------------------------
10 \wxheading{Event handling
}
12 To process events from a socket, use the following event handler macro to direct
14 functions that take a
\helpref{wxSocketEvent
}{wxsocketevent
} argument.
17 \begin{twocollist
}\itemsep=
0pt
18 \twocolitem{{\bf EVT
\_SOCKET(id, func)
}}{A socket event occured.
}
21 % ---------------------------------------------------------------------------
23 % ---------------------------------------------------------------------------
26 \helpref{wxSocketEvent
}{wxsocketevent
}\\
27 \helpref{wxSocketClient
}{wxsocketclient
}\\
28 \helpref{wxSocketServer
}{wxsocketserver
}
30 % ---------------------------------------------------------------------------
32 % ---------------------------------------------------------------------------
33 \latexignore{\rtfignore{\wxheading{Members
}}}
35 \membersection{wxSocketBase::wxSocketBase
}
37 \func{}{wxSocketBase
}{\void}
39 Default constructor but don't use it, you must use
\helpref{wxSocketClient
}{wxsocketclient
}
40 or
\helpref{wxSocketServer
}{wxsocketserver
}.
42 \membersection{wxSocketBase::
\destruct{wxSocketBase
}}
44 \func{}{\destruct{wxSocketBase
}}{\void}
46 Destroys the wxSocketBase object.
48 % ---------------------------------------------------------------------------
50 % ---------------------------------------------------------------------------
52 \membersection{wxSocketBase::Ok
}\label{wxsocketbaseok
}
54 \constfunc{bool
}{Ok
}{\void}
56 Returns TRUE if the socket is initialized and ready and FALSE in other
59 \membersection{wxSocketBase::Error
}\label{wxsocketbaseerror
}
61 \constfunc{bool
}{Error
}{\void}
63 Returns TRUE if an error occured.
65 \membersection{wxSocketBase::IsConnected
}\label{wxsocketbaseconnected
}
67 \constfunc{bool
}{IsConnected
}{\void}
69 Returns TRUE if the socket is connected.
71 \membersection{wxSocketBase::IsData
}\label{wxsocketbaseisdata
}
73 \constfunc{bool
}{IsData
}{\void}
75 Returns TRUE if some data is arrived on the socket.
77 \membersection{wxSocketBase::IsDisconnected
}\label{wxsocketbasedisconnected
}
79 \constfunc{bool
}{IsDisconnected
}{\void}
81 Returns TRUE if the socket is disconnected.
83 \membersection{wxSocketBase::IsNoWait
}\label{wxsocketbasenowait
}
85 \constfunc{bool
}{IsNoWait
}{\void}
87 Returns TRUE if the socket mustn't wait.
89 \membersection{wxSocketBase::LastCount
}\label{wxsocketbaselastcount
}
91 \constfunc{size
\_t}{LastCount
}{\void}
93 Returns the number of bytes read or written by the last IO call.
95 \membersection{wxSocketBase::LastError
}\label{wxsocketbaselasterror
}
97 \constfunc{int
}{LastError
}{\void}
99 Returns an error in the errno format (see your C programmer's guide).
101 % ---------------------------------------------------------------------------
103 % ---------------------------------------------------------------------------
107 \membersection{wxSocketBase::Peek
}\label{wxsocketbasepeek
}
109 \func{wxSocketBase\&
}{Peek
}{\param{char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
111 This function peeks a buffer of
{\it nbytes
} bytes from the socket. Peeking a buffer
112 doesn't delete it from the system socket in-queue.
114 \wxheading{Parameters
}
116 \docparam{buffer
}{Buffer where to put peeked data.
}
118 \docparam{nbytes
}{Number of bytes.
}
120 \wxheading{Return value
}
122 Returns a reference to the current object.
126 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
}\\
127 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
}\\
128 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}
133 \membersection{wxSocketBase::Read
}\label{wxsocketbaseread
}
135 \func{wxSocketBase\&
}{Read
}{\param{char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
137 This function reads a buffer of
{\it nbytes
} bytes from the socket.
139 \wxheading{Parameters
}
141 \docparam{buffer
}{Buffer where to put read data.
}
143 \docparam{nbytes
}{Number of bytes.
}
145 \wxheading{Return value
}
147 Returns a reference to the current object.
149 \wxheading{Remark/Warning
}
151 By default, Read uses an internal asynchronous manager: it will send data when
152 the socket requests them. It is particularly interesting when you enter a long
153 data transfer (e.g. a big file, an image, ...). But it is also buggy when you
154 simply discuss with the peer using user data. In this case, wxSocket prepares
155 itself to send data (Write wait for them to be sent) and during a GUI refresh
156 the user enters new data, which involves a new Read call though the previous
157 isn't finished. Well, in most cases it can work but it might fail too.
158 So I advise you to use the SPEED flag, which disables the asynchronous manager,
159 when you just want to discuss with the peer.
161 This remark is also valid for all IO call.
165 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
},
166 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
},
167 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}
169 \membersection{wxSocketBase::SetFlags
}\label{wxsocketbasesetflags
}
171 \func{void
}{SetFlags
}{\param{wxSockFlags
}{ flags
}}
174 \begin{twocollist
}\itemsep=
0pt
175 \twocolitem{{\bf wxSocketBase::NONE
}}{Normal functionnalities.
}
176 \twocolitem{{\bf wxSocketBase::NOWAIT
}}{Get the available data in the input queue and exit immediately.
}
177 \twocolitem{{\bf wxSocketBase::WAITALL
}}{Wait for all required data unless an error occured.
}
178 \twocolitem{{\bf wxSocketBase::SPEED
}}{Disable the asynchronous IO functionnality.
}
184 \membersection{wxSocketBase::Write
}\label{wxsocketbasewrite
}
186 \func{wxSocketBase\&
}{Write
}{\param{const char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
188 This function writes a buffer of
{\it nbytes
} bytes from the socket.
190 \wxheading{Remark/Warning
}
192 By default, Write uses an internal asynchronous manager: it will send data when
193 the socket requests them. It is particularly interesting when you enter a long
194 data transfer (e.g. a big file, an image, ...). But it is also buggy when you
195 simply discuss with the peer using user data. In this case, wxSocket prepares
196 itself to send data (Write wait for them to be sent) and during a GUI refresh
197 the user enters new data, which involves a new Write call though the previous
198 isn't finished. Well, in most cases it can work but it might fail too.
199 So I advise you to use the SPEED flag, which disables the asynchronous manager,
200 when you just want to discuss with the peer.
202 \wxheading{Parameters
}
204 \docparam{buffer
}{Buffer where to get the data to write.
}
206 \docparam{nbytes
}{Number of bytes.
}
208 \wxheading{Return value
}
210 Returns a reference to the current object.
214 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
}\\
215 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
}\\
216 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}
221 \membersection{wxSocketBase::WriteMsg
}\label{wxsocketbasewritemsg
}
223 \func{wxSocketBase\&
}{WriteMsg
}{\param{const char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
225 This function writes a buffer of
{\it nbytes
} bytes from the socket. But it
226 writes a short header before so that ReadMsg can alloc the right size for
227 the buffer. So a buffer sent with WriteMsg
{\bf must
} be read with ReadMsg.
229 \wxheading{Parameters
}
231 \docparam{buffer
}{Buffer where to put data peeked.
}
233 \docparam{nbytes
}{Number of bytes.
}
235 \wxheading{Return value
}
237 Returns a reference to the current object.
241 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
}\\
242 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
}\\
243 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}\\
244 \helpref{wxSocketBase::ReadMsg
}{wxsocketbasereadmsg
}
249 \membersection{wxSocketBase::ReadMsg
}\label{wxsocketbasereadmsg
}
251 \func{wxSocketBase\&
}{ReadMsg
}{\param{char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
253 This function reads a buffer sent by WriteMsg on a socket. If the buffer passed
254 to the function isn't big enough, the function filled it and then discard the
255 bytes left. This function always wait for the buffer to be entirely filled.
257 \wxheading{Parameters
}
259 \docparam{buffer
}{Buffer where to put read data.
}
261 \docparam{nbytes
}{Number of bytes allocated for the buffer.
}
263 \wxheading{Return value
}
265 Returns a reference to the current object.
269 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
}\\
270 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
}\\
271 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}\\
272 \helpref{wxSocketBase::WriteMsg
}{wxsocketbasewritemsg
}
277 \membersection{wxSocketBase::UnRead
}\label{wxsocketbaseunread
}
279 \func{wxSocketBase\&
}{UnRead
}{\param{const char *
}{ buffer
},
\param{size
\_t}{ nbytes
}}
281 This function unreads a buffer. It means that the buffer is put in the top
282 of the incoming queue. But, it is put also at the end of all unread buffers.
283 It is useful for sockets because we can't seek it.
285 \wxheading{Parameters
}
287 \docparam{buffer
}{Buffer to be unread.
}
289 \docparam{nbytes
}{Number of bytes.
}
291 \wxheading{Return value
}
293 Returns a reference to the current object.
297 \helpref{wxSocketBase::Error
}{wxsocketbaseerror
}\\
298 \helpref{wxSocketBase::LastCount
}{wxsocketbaselastcount
}\\
299 \helpref{wxSocketBase::LastError
}{wxsocketbaselasterror
}
304 \membersection{wxSocketBase::Discard
}\label{wxsocketbasediscard
}
306 \func{wxSocketBase\&
}{Discard
}{\void}
308 This function simply deletes all bytes in the incoming queue. This function
311 % ---------------------------------------------------------------------------
313 % ---------------------------------------------------------------------------
314 \membersection{wxSocketBase::Wait
}\label{wxsocketbasewait
}
316 \func{bool
}{Wait
}{\param{long
}{ seconds = -
1},
\param{long
}{ microsecond =
0}}
318 This function waits for an event: it could be an incoming byte, the possibility
319 for the client to write, a lost connection, an incoming connection, an
320 established connection.
322 \wxheading{Parameters
}
324 \docparam{seconds
}{Number of seconds to wait. By default, it waits infinitely.
}
326 \docparam{microsecond
}{Number of microseconds to wait.
}
328 \wxheading{Return value
}
330 Returns TRUE if an event occured, FALSE if the timeout was reached.
334 \helpref{wxSocketBase::WaitForRead
}{wxsocketbasewaitforread
}\\
335 \helpref{wxSocketBase::WaitForWrite
}{wxsocketbasewaitforwrite
}\\
336 \helpref{wxSocketBase::WaitForLost
}{wxsocketbasewaitforlost
}
341 \membersection{wxSocketBase::WaitForRead
}\label{wxsocketbasewaitforread
}
343 \func{bool
}{WaitForRead
}{\param{long
}{ seconds = -
1},
\param{long
}{ microsecond =
0}}
345 This function waits for a read event.
347 \wxheading{Parameters
}
349 \docparam{seconds
}{Number of seconds to wait. By default, it waits infinitely.
}
351 \docparam{microsecond
}{Number of microseconds to wait.
}
353 \wxheading{Return value
}
355 Returns TRUE if a byte arrived, FALSE if the timeout was reached.
359 \helpref{wxSocketBase::Wait
}{wxsocketbasewait
}\\
360 \helpref{wxSocketBase::WaitForWrite
}{wxsocketbasewaitforwrite
}\\
361 \helpref{wxSocketBase::WaitForLost
}{wxsocketbasewaitforlost
}
366 \membersection{wxSocketBase::WaitForWrite
}\label{wxsocketbasewaitforwrite
}
368 \func{bool
}{WaitForWrite
}{\param{long
}{ seconds = -
1},
\param{long
}{ microsecond =
0}}
370 This function waits for a write event.
372 \wxheading{Parameters
}
374 \docparam{seconds
}{Number of seconds to wait. By default, it waits infinitely.
}
376 \docparam{microsecond
}{Number of microseconds to wait.
}
378 \wxheading{Return value
}
380 Returns TRUE if a write event occured, FALSE if the timeout was reached.
384 \helpref{wxSocketBase::Wait
}{wxsocketbasewait
}\\
385 \helpref{wxSocketBase::WaitForRead
}{wxsocketbasewaitforread
}\\
386 \helpref{wxSocketBase::WaitForLost
}{wxsocketbasewaitforlost
}
391 \membersection{wxSocketBase::WaitForLost
}\label{wxsocketbasewaitforlost
}
393 \func{bool
}{Wait
}{\param{long
}{ seconds = -
1},
\param{long
}{ microsecond =
0}}
395 This function waits for a "lost" event. For instance, the peer may have closed
396 the connection, or the connection may have been broken.
398 \wxheading{Parameters
}
400 \docparam{seconds
}{Number of seconds to wait. By default, it waits infinitely.
}
402 \docparam{microsecond
}{Number of microseconds to wait.
}
404 \wxheading{Return value
}
406 Returns TRUE if a "lost" event occured, FALSE if the timeout was reached.
410 \helpref{wxSocketBase::WaitForRead
}{wxsocketbasewaitforread
}\\
411 \helpref{wxSocketBase::WaitForWrite
}{wxsocketbasewaitforwrite
}\\
412 \helpref{wxSocketBase::WaitForLost
}{wxsocketbasewaitforlost
}
417 \membersection{wxSocketBase::RestoreState
}\label{wxsocketbaserestorestate
}
419 \func{void
}{RestoreState
}{\void}
421 This function restores a previously saved state.
425 \helpref{wxSocketBase::SaveState
}{wxsocketbasesavestate
}
427 % ---------------------------------------------------------------------------
429 % ---------------------------------------------------------------------------
433 \membersection{wxSocketBase::SaveState
}\label{wxsocketbasesavestate
}
435 \func{void
}{SaveState
}{\void}
437 This function saves the current state of the socket object in a stack:
438 actually it saves all flags and the state of the asynchronous callbacks.
442 \helpref{wxSocketBase::RestoreState
}{wxsocketbaserestorestate
}
444 % ---------------------------------------------------------------------------
446 % ---------------------------------------------------------------------------
447 \membersection{wxSocketBase::SetEventHandler
}\label{wxsocketbaseseteventhandler
}
449 \func{void
}{SetEventHandler
}{\param{wxEvtHandler\&
}{ evt
\_hdlr},
\param{int
}{ id = -
1}}
451 Sets an event handler to be called when a socket event occured.
453 \wxheading{Parameters
}
455 \docparam{evt
\_hdlr}{Specifies the event handler you want to use.
}
457 \docparam{id
}{The id of socket event.
}
461 \helpref{wxSocketEvent
}{wxsocketevent
}
463 % ---------------------------------------------------------------------------
464 % CLASS wxSocketClient
465 % ---------------------------------------------------------------------------
466 \section{\class{wxSocketClient
}}\label{wxsocketclient
}
468 \wxheading{Derived from
}
470 \helpref{wxSocketBase
}{wxsocketbase
}
472 % ---------------------------------------------------------------------------
474 % ---------------------------------------------------------------------------
478 \membersection{wxSocketClient::wxSocketClient
}
480 \func{}{wxSocketClient
}{\param{wxSockFlags
}{ flags = wxSocketBase::NONE
}}
482 Constructs a new wxSocketClient.
484 {\bf Warning !
} The new socket client needs to be registered to a socket handler (See
\helpref{wxSocketHandler
}{wxsockethandler
}).
486 \wxheading{Parameters
}
488 \docparam{flags
}{Socket flags (See
\helpref{wxSocketBase::SetFlags
}{wxsocketbasesetflags
})
}
493 \membersection{wxSocketClient::
\destruct{wxSocketClient
}}
495 \func{}{\destruct{wxSocketClient
}}{\void}
497 Destroys a wxSocketClient object.
502 \membersection{wxSocketClient::Connect
}\label{wxsocketclientconnect
}
504 \func{bool
}{Connect
}{\param{wxSockAddress\&
}{ address
},
\param{bool
}{ wait = TRUE
}}
506 Connects to a server using the specified address. If
{\it wait
} is TRUE, Connect
507 will wait for the socket ready to send or receive data.
509 \wxheading{Parameters
}
511 \docparam{address
}{Address of the server.
}
513 \docparam{wait
}{If true, waits for the connection to be ready.
}
515 \wxheading{Return value
}
517 Returns TRUE if the connection is established and no error occurs.
521 \helpref{wxSocketClient::WaitOnConnect
}{wxsocketclientwaitonconnect
}
526 \membersection{wxSocketClient::WaitOnConnect
}\label{wxsocketclientwaitonconnect
}
528 \func{bool
}{WaitOnConnect
}{\param{long
}{ seconds = -
1},
\param{long
}{ microseconds =
0}}
530 Wait for a "connect" event.
534 \helpref{wxSocketBase::Wait
}{wxsocketbasewait
} for a detailed description.
536 % ---------------------------------------------------------------------------
537 % CLASS: wxSocketEvent
538 % ---------------------------------------------------------------------------
539 \section{\class{wxSocketEvent
}}\label{wxsocketevent
}
541 This event class contains information about socket events.
543 \wxheading{Derived from
}
545 \helpref{wxEvent
}{wxevent
}
547 \wxheading{Event table macros
}
549 To process a socket event, use these event handler macros to direct input to member
550 functions that take a wxSocketEvent argument.
553 \begin{twocollist
}\itemsep=
0pt
554 \twocolitem{{\bf EVT
\_SOCKET(id, func)
}}{Process a socket event, supplying the member function.
}
559 \helpref{wxSocketHandler
}{wxsockethandler
},
\rtfsp
560 \helpref{wxSocketBase
}{wxsocketbase
},
\rtfsp
561 \helpref{wxSocketClient
}{wxsocketclient
},
\rtfsp
562 \helpref{wxSocketServer
}{wxsocketserver
}
564 \latexignore{\rtfignore{\wxheading{Members
}}}
566 \membersection{wxSocketEvent::wxSocketEvent
}
568 \func{}{wxSocketEvent
}{\param{int
}{ id =
0}}
572 \membersection{wxSocketEvent::SocketEvent
}\label{wxsocketeventsocketevent
}
574 \constfunc{wxSocketBase::wxRequestEvent
}{SocketEvent
}{\void}
576 Returns the socket event type.
578 % ---------------------------------------------------------------------------
579 % CLASS: wxSocketHandler
580 % ---------------------------------------------------------------------------
581 \section{\class{wxSocketHandler
}}\label{wxsockethandler
}
583 \wxheading{Derived from
}
585 \helpref{wxObject
}{wxobject
}
587 % ---------------------------------------------------------------------------
589 % ---------------------------------------------------------------------------
590 \latexignore{\rtfignore{\wxheading{Members
}}}
595 \membersection{wxSocketHandler::wxSocketHandler
}
597 \func{}{wxSocketHandler
}{\void}
599 Constructs a new wxSocketHandler.
601 It is advised to use
\helpref{wxSocketHandler::Master
}{wxsockethandlermaster
} to
602 get a socket handler. But creating a socket handler is useful to group
608 \membersection{wxSocketHandler::
\destruct{wxSocketHandler
}}
610 \func{}{\destruct{wxSocketHandler
}}{\void}
612 Destroys a wxSocketHandler object.
617 \membersection{wxSocketHandler::Register
}
619 \func{void
}{Register
}{\param{wxSocketBase *
}{socket
}}
621 Register a socket: if it is already registered in this handler it will just
624 \wxheading{Parameters
}
626 \docparam{socket
}{Socket to be registered.
}
631 \membersection{wxSocketHandler::UnRegister
}
633 \func{void
}{UnRegister
}{\param{wxSocketBase *
}{socket
}}
635 UnRegister a socket: if it isn't registered in this handler it will just
638 \wxheading{Parameters
}
640 \docparam{socket
}{Socket to be unregistered.
}
645 \membersection{wxSocketHandler::Count
}
647 \constfunc{unsigned long
}{Count
}{\void}
649 Returns the number of sockets registered in the handler.
651 \wxheading{Return value
}
653 Number of sockets registered.
658 \membersection{wxSocketHandler::CreateServer
}
660 \func{wxSocketServer *
}{CreateServer
}{\param{wxSockAddress\&
}{ address
},
\param{wxSocketBase::wxSockFlags
}{ flags = wxSocketbase::NONE
}}
662 Creates a new wxSocketServer object. The object is automatically registered
663 to the current socket handler.
664 For a detailed description of the parameters, see
\helpref{wxSocketServer::wxSocketServer
}{wxsocketserverconstr
}.
666 \wxheading{Return value
}
668 Returns a new socket server.
673 \membersection{wxSocketHandler::CreateClient
}
675 \func{wxSocketServer *
}{CreateClient
}{\param{wxSocketBase::wxSockFlags
}{ flags = wxSocketbase::NONE
}}
677 Creates a new wxSocketClient object. The object is automatically registered
678 to the current socket handler.
680 For a detailed description of the parameters, see
\helpref{wxSocketClient::Connect
}{wxsocketclientconnect
}.
682 \wxheading{Return value
}
684 Returns a new socket client.
689 \membersection{wxSocketHandler::Master
}\label{wxsockethandlermaster
}
691 \func{static wxSocketHandler\&
}{Master
}{\void}
693 Returns a default socket handler.
698 \membersection{wxSocketHandler::Wait
}
700 \func{int
}{Wait
}{\param{long
}{ seconds
},
\param{long
}{ microseconds
}}
702 Wait for an event on all registered sockets.
704 \wxheading{Parameters
}
706 \docparam{seconds
}{Number of seconds to wait. By default, it waits infinitely.
}
708 \docparam{microsecond
}{Number of microseconds to wait.
}
710 \wxheading{Return value
}
712 Returns
0 if a timeout occured, else the number of events detected.
716 \helpref{wxSocketBase::Wait
}{wxsocketbasewait
}
721 \membersection{wxSocketHandler::YieldSock
}
723 \func{void
}{YieldSock
}{\void}
725 Execute pending requests in all registered sockets.
727 % ---------------------------------------------------------------------------
728 % CLASS: wxSocketServer
729 % ---------------------------------------------------------------------------
730 \section{\class{wxSocketServer
}}\label{wxsocketserver
}
732 \wxheading{Derived from
}
734 \helpref{wxSocketBase
}{wxsocketbase
}
736 % ---------------------------------------------------------------------------
738 % ---------------------------------------------------------------------------
739 \latexignore{\rtfignore{\wxheading{Members
}}}
744 \membersection{wxSocketServer::wxSocketServer
}\label{wxsocketserverconstr
}
746 \func{}{wxSocketServer
}{\param{wxSockAddress\&
}{ address
},
\param{wxSockFlags
}{ flags = wxSocketBase::NONE
}}
748 Constructs a new wxSocketServer.
750 {\bf Warning !
} The created object needs to be registered to a socket handler
751 (see
\helpref{wxSocketHandler
}{wxsockethandler
}).
753 \wxheading{Parameters
}
755 \docparam{address
}{Specifies the local address for the server (e.g. port number).
}
757 \docparam{flags
}{Socket flags (See
\helpref{wxSocketBase::SetFlags
}{wxsocketbasesetflags
})
}
762 \membersection{wxSocketServer::
\destruct{wxSocketServer
}}
764 \func{}{\destruct{wxSocketServer
}}{\void}
766 Destroys a wxSocketServer object (it doesn't close the accepted connection).
771 \membersection{wxSocketServer::Accept
}
773 \func{wxSocketBase *
}{Accept
}{\void}
775 Creates a new object wxSocketBase and accepts an incoming connection.
{\bf Warning !
} This function will block the GUI.
777 \wxheading{Return value
}
779 Returns an opened socket connection.
783 \helpref{wxSocketServer::AcceptWith
}{wxsocketserveracceptwith
}
788 \membersection{wxSocketServer::AcceptWith
}\label{wxsocketserveracceptwith
}
790 \func{bool
}{AcceptWith
}{\param{wxSocketBase\&
}{ socket
}}
792 Accept an incoming connection using the specified socket object.
793 This is useful when someone wants to inherit wxSocketBase.
795 \wxheading{Parameters
}
797 \docparam{socket
}{Socket to be initialized
}
799 \wxheading{Return value
}
801 Returns TRUE if no error occurs, else FALSE.