Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 00:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++] Socket Funktion

Discussion on [C++] Socket Funktion within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
black0utCpp's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 381
Received Thanks: 210
[C++] Socket Funktion

Ok hallo Leute ich habe mich heute mal an die Socket Programmierung gemacht und habe eine Frage.Die Intialisierung der Sockets ist keinerlei Problem für mich wenn ich aber ein Socket erstellen möchte via
socket(int family,int type,int prototype);
also bei mir (socket(AF_INET,SOCK_STREAM,0)
bekomme ich den Fehler ("Der Ausdruck muss einen Pointer to Funktionstyp aufweisen")

Was kann ich da machen ich stehe irgendwie auf dem Schlauch
black0utCpp is offline  
Old 01/02/2011, 23:29   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 793
Received Thanks: 268
wird denkeich daran liegen, das du irgendwo eine vaiable mit dem namen "socket" hast, die die funktion mit dem namen sochet überschreibt, hat mich auch überracht das sowas noch passien kann.

Edit:
hier ein beispiel für diesen fehler:
Code:
int Test()
{
return 5;
}

int main()
{
int Test = 6;         //
Test = Test();      //<-- geht nicht
return 0;
}
nkkk is offline  
Thanks
1 User
Old 01/02/2011, 23:50   #3
 
black0utCpp's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 381
Received Thanks: 210
Danke im Eifer des Gefechts hatte ich ganz meine Variablendekleration übersehen ;-)
black0utCpp is offline  
Reply

Tags
c++, funktion, funktionstyp, pointer, socket




All times are GMT +2. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.