delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/22/14:35:44

Date: Fri, 22 Jun 2001 20:34:15 +0200
Message-Id: <GFCGX3$IuRCpTIG9mNO5uSbvzqGymKavWEwMLoi3d0gqzwKD@nomade.fr>
Subject: Libsocket : Protocol not supported < EPROTONOSUPPORT >
MIME-Version: 1.0
From: "rubikz AT nomade DOT fr"<rubikz AT nomade DOT fr>
To: djgpp AT delorie DOT com
X-XaM3-API-Version: 1.1.9.1.38
X-SenderIP: 202.139.40.8
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id OAA20456
Reply-To: djgpp AT delorie DOT com

Hi, i'm french and sorry for my english !
I created a server program and i compiled it with Djgpp 
(gcc server.c -o server.exe -lsocket).
I use ls080.
The programm run ( OS =windows 98) correctly on  a 
computer with Djgpp installed.
When i try to run it on  a other computer (OS =windows 
98) with no Djgpp installed, this message appears :

Protocol not supported < EPROTONOSUPPORT >

This error appears with any computers running on win 98 
without djgpp installed.

This is a extract of program :

int
main (void) 
{
  struct sockaddr_in sin;
  struct sockaddr_in remote;
  int sockfd, newfd;
  size_t len;  
  
 
  int pl_len;
  int ret;
  
  memset ( &sin, 0, sizeof ( struct sockaddr_in ) );

  sockfd = socket ( AF_INET, SOCK_STREAM, 0 );

  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = NULL;
  sin.sin_port = htons ( PORT );

  /* création de la socket sockfd */
   if((sockfd=socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    lsck_perror("socket");
    exit(1);
     }

...

Do you have an idea ?

Please contact me rubikz AT nomade DOT fr

Thanks

My config:
environ.lst :
-----------
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
DOS_SBE=A220 I7 D1 H5 P330 T6 
CTSYN=C:\WINDOWS
PATH=D:/DJGPP/BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;D:
\MESPRO~1\C___BU~2\CBUILD~1\BIN;D:\MESPRO~1\C___BU~2
\CBUILD~1\PROJECTS\BPL
DJGPP=d:/DJGPP/djgpp.env
windir=C:\WINDOWS
BLASTER=A220 I7 D1 H5 P330 T6
CMDLINE=strip server.exe

autoexec.bat:
------------
@D:\MESPRO~1\AVG\bootup.exe
SET BLASTER=A220 I7 D1 H5 P330  T6
SET CTSYN=C:\WINDOWS
C:\PROGRA~1\CREATIVE\SBLIVE\DOSDRV\SBEINIT.COM
mode con codepage prepare=((850) C:
\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
keyb fr,,C:\WINDOWS\COMMAND\keyboard.sys

SET PATH=%PATH%;d:\MESPRO~1\C___BU~2\CBUILD~1\BIN;d:
\MESPRO~1\C___BU~2\CBUILD~1\PROJECTS\BPL

REM Following two lines were added by LBInstDJ, the DJGPP 
installer
SET PATH=d:/DJGPP/bin;%PATH%
SET DJGPP=d:/DJGPP/djgpp.env

config.sys:
----------
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=033,850,C:\WINDOWS\COMMAND\country.sys

-------------------
L'e-mail gratuit pas comme les autres.
Pour créer votre adresse : http://www.nomade.fr/courrier/ouvrir.asp
NOMADE.FR, pourquoi chercher ailleurs ?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019