|
Category: | Wiki/Software/Widgets | Rating: | |
Name: | [Stale links 2015-04-09] Fl_Connect | Popularity: | 10% |
Version: | 1 | License: | free |
Author: | Louis-Charles Dumais | EMail: | lcdumais |
Created: | Mar 06, 2003 |
Updated: | Nov 12, 2023 |
Home Page: | http://www.genu.dynu.com (2758 visits) |
Download: | http://www.genu.dynu.com/programming/Fl_Connect.zip (2475 visits) |
Description: | Fl_Connect is a working attempt to implement sockets in FLTK. Fl_Connect is
currently working for windows but a linux version should be easy to do
following the #ifdef WIN32 .
class Fl_Connect{
#ifdef WIN32
//for sending
SOCKADDR_IN addr_Dest;
SOCKET sock_Main;//use for listening too
//for listening
SOCKADDR_IN addr_Srv, addr_Cli;
SOCKET sock_Listen;
#endif
char IP[20];
short port;
public:
bool connect(char inIP[20],short inPort);
bool connectDNS(char *inDNS,short inPort);//TODO
bool listen(int inPort);
bool send(char* inBuffer,int inSizeOfBuffer);
char *receive(int inLenghtOfMessage);
bool close();
Fl_Connect();
~Fl_Connect(){};
}; |
[ Submit Article | View All ]
|
149 | Fl_Connect 1 | Mar 07, 2003 | 1 | |
|
| Fl_Connect is a working attempt to implement sockets in FLTK. Fl_Connect is
currently working for windows but a linux version should be easy to do
following the #ifdef WIN32 . | |
[ Submit Comment ]From engelsman, 14:15 Apr 09, 2015 (score=3)
The links are dead. Maybe the author can post new links if the project is still alive
[ Reply ] |
| |