FLTK logo

[Stale links 2015-04-09] Fl_Connect 1

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 Back To Listings  ]
 
Category:Wiki/Software/WidgetsRating:
2.5 
Name:[Stale links 2015-04-09] Fl_ConnectPopularity:11%
Version:1License:free
Author:Louis-Charles DumaisEMail:lcdumais
Created:Mar 06, 2003
Updated:Nov 12, 2023
Home Page:http://www.genu.dynu.com (3059 visits)
Download:http://www.genu.dynu.com/programming/Fl_Connect.zip (2753 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(){};

};


Articles

Submit Article | View All ]
ID Title Last Modified Comment(s)  
  149Fl_Connect 1Mar 07, 20031  
 

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 .

 
     

Comments

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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.