LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2015, 01:11 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
What language is this?


Does anyone know what language this is?

Code:
int socket (
     int domain = 2;
     int type = 1;
     int protocol = 0;
) =  14;
int connect (
     int sockfd = 14;
     struct sockaddr_in * serv_addr = 0x00416fbe => 
         struct   = {
             short sin_family = 2;
             unsigned short sin_port = 11264 (port=44);
             struct in_addr sin_addr = {
                 unsigned long s_addr = 201435328 (host=192.168.1.12);
             };
             char sin_zero = "       ";
         };
     int addrlen = 102;
) =  0;
TY
 
Old 08-25-2015, 01:29 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
pseudo-code?
 
Old 08-25-2015, 01:31 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by NevemTeve View Post
pseudo-code?
I'm not sure if its c, psuedo-code or something else.
 
Old 08-25-2015, 01:35 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
But you do know where it came from, don't you?
 
Old 08-25-2015, 01:36 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by NevemTeve View Post
But you do know where it came from, don't you?
Output from sctest
 
Old 09-02-2015, 01:35 AM   #6
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by abefroman View Post
Output from sctest
Then you expect it to be a programming language? It looks like some kind of report.

Last edited by Beryllos; 09-02-2015 at 01:39 AM.
 
Old 09-02-2015, 01:01 PM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
It is English

Has C "appearance" however incorrect syntax. I agree, it looks more to be a report versus code.

For something that detailed, I would assume that it was part of something you're already using. I.e. one does not simply have socket source as part of some rudimentary distraction, but instead you're writing, compiling,a and debugging a project of some type. My point there is that you've used some sort of utility, which you state is sctest. Looks like that's a dated tool, but then it would mean that there should be some documentation and sources for the tool itself. So if you really wish to decode the meanings of the added items, you could look at the sctest sources and some documentation references and see if that answers more specific questions.
 
Old 09-04-2015, 10:44 AM   #8
polaris96
Member
 
Registered: Jan 2015
Distribution: Slackware, LFS, OpenIndiana, debian wheezy
Posts: 55

Rep: Reputation: Disabled
it's c but it's not anything like a complete program. looks like a piece of (monster big) prototype... maybe.

I'd say c code for sure, though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] A problem. When using assembly language to call the C language function mirage1993 Programming 3 10-03-2014 08:15 AM
[SOLVED] How to change gtkspell language without changing Slackware language? André0991 Slackware 4 03-05-2014 03:09 PM
Is Assembly Language considered a Structured Language? theKbStockpiler Programming 4 01-30-2011 09:09 AM
[SOLVED] Can the language of fedora boot message change to other language, zh_CN,e.g.? jimtony Fedora 2 01-11-2011 03:03 AM
Good linux chinese language language program? darsunt Linux - Software 1 04-10-2009 12:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration