OWLNext
7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Using a Stream Client
Create a stream socket (socket()):
TStreamSocket socket(TINetSocketAddress());
socket.CreateSocket();
Connect to the server (connect()):
socket.Connect(TINetSocketAddress(
htons
(2000),
TINetSocketAddress::ConvertAddress(
"soyeun@harvard.edu"
));
VarType
Definition
safearray.h:14
To Write (send()):
socket.Write(
"Hello"
);
To Read (recv()):
char
buffer
[80];
socket.Read(
buffer
,
sizeof
(
buffer
));
Close the connection (closesocket()):
socket.CloseSocket();
OWLNext
Overview of ObjectWindows
Overview of the Windows Socket Classes
Stream Socket Communication
Generated by
1.10.0