Wez Posted July 27, 2007 Share Posted July 27, 2007 Hey All, Just wondering if there are any JAVA or C network programmers on the board. Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Guess not Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 C++ Programmer here, (Java too) Jay Quote Link to comment Share on other sites More sharing options...
SimonB Posted July 27, 2007 Share Posted July 27, 2007 Depends what you mean by "network programmer". I'm a software engineer, and our simulations are distributed systems mainly written in C++. Quote Link to comment Share on other sites More sharing options...
Pixelfill Posted July 27, 2007 Share Posted July 27, 2007 Depends what you mean by "network programmer". I'm a software engineer, and our simulations are distributed systems mainly written in C++. Oooo Tell me more my good friend. Mike Quote Link to comment Share on other sites More sharing options...
SimonB Posted July 27, 2007 Share Posted July 27, 2007 I work for NATS (National Air Traffic Services, although we're not supposed to call it that any more, "branding" and all that ). We do air traffic control simulations. They are used to train new air traffic controllers and try new stuff out before it gets implemented for real. For example new tools that predict the trajectory of aircraft in the medium term to sort out potential conflicts and enable the controller to handle more traffic - they were all simulated by us. Some of our sims have 30 odd controller positions, each of which has 2 radar displays and a couple of information displays. Then there are >30 pilot positions where guys basically pretend to be the aircraft. Behind it all there is a pretty complex model that simulates the aircraft performance etc, and how they would appear on radar etc. All that lot is basically one big distributed system. No flight sims though, sorry! Quote Link to comment Share on other sites More sharing options...
Pixelfill Posted July 27, 2007 Share Posted July 27, 2007 Ahhh, Interesting, out of curiosity are these networked using DIS, HLA or something proprietary? No flight sims though, sorry! you know me well then Mike Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Interesting, I do a lot of work which is based around airports. The reason I asked the question is that I was wondering how difficult it is to write a small program that accepts a TCP stream through a designated port using our own protocol that would then output that data through another tcp port or write to a text file or mysql database. Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 Interesting, I do a lot of work which is based around airports. The reason I asked the question is that I was wondering how difficult it is to write a small program that accepts a TCP stream through a designated port using our own protocol that would then output that data through another tcp port or write to a text file or mysql database. To a text file would be very easy, to a mysql database would add the complication of a MySQL API (never written anything that talks directly to MySQL before) Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 When you say very easy, how many lines of code are do you think would be involved. What would be better suited to this JAVA or C? Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 To quanitfy in lines of code is very difficult, you could write a program that is very difficult to understand that uses a mimimum amount of code, or a program that is well thought out (easy to expand and well designed) that uses 2 or 3 times the amount of lines. In my experience it's better to talk in terms of how long it will take to write. An experienced coder could prolly knock something up in under a day (esp if he's used to writing TCP applications & has a library of well used functions available). PS the number of lines would depend on how complex you wanted the program, for example you could hardcode the ip & port within the code, or you code read the ip & port from config, obviously the latter would add the extra complexity of reading config. As a minimum of a hack program I'd say realistically 500 to 1000 to write to a text file, for a program which is being written as part of a business which needs to be modified by multiple people, could be over 3000 (and would need fully designing). Oh and it also depends on how complex "your protocol" is, this is why it's so hard to give a definite answer, but I hope the above gives you an idea. Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 Don't know which language would be quickest, if you asked me I'd go c++ all the way, experienced Java programmers would probably agrue otherwise. I would have thought it was easier to get c++ to access files as Java locks the environment down much more, c++ can tend to do what it likes with local files (and there's prolly an ODBC driver for MySQL) Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Some of our stuff has been rewritten in C and we noticed a performance increase as a result. But JAVA does make it easier to port to other platforms, in theory anyway. Quote Link to comment Share on other sites More sharing options...
monkey3 Posted July 27, 2007 Share Posted July 27, 2007 C++ here too. among others Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 One of the problems I've encountered with Java is yes you only have to write the code once for many platforms, but when you add up the different combinations of browser/JVM version/OS type & version some code will work on one & not another (sort of defeats the prupose of Java) well that's my experience of Java Applets anyway, dunno if Java Applications fair any better. Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 I have done some PHP MySQL work and years ago did opcode in college and have done some very basic C programing, where would be a good place to start. This app needs to work on linux, I am thinking C is prob the best way to go, which development environment would be good to work in? Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 IMHO if a programmer who is profficient in Java & C++ was posed that problem most whould choose c++ as their preferred language (maybe I'm just saying that as I like C++ ) Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 I've never worked on Linux (windows man myself therefore MSDev 6 & .Net) I know lads at work who use Linux A LOT so can ask them Monday which is the best development environment for c++ on Linux. Are you writing this yourself Wez??? Quote Link to comment Share on other sites More sharing options...
monkey3 Posted July 27, 2007 Share Posted July 27, 2007 there's defo an ODBC driver for MySQL and provided you don't use MFC, it's quite easy to write code that's multi platform... Just needs re-compiling Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Are you writing this yourself Wez??? Thought I might give it go Quote Link to comment Share on other sites More sharing options...
SimonB Posted July 27, 2007 Share Posted July 27, 2007 Ahhh, Interesting, out of curiosity are these networked using DIS, HLA or something proprietary? you know me well then Mike We use a proprietary toolkit we wrote quite a while back. The interfaces are basically defined in IDL and a code generator generates wrappers. The underlying toolkit uses good old TCP sockets and XDR to encode the data. It's multi-platform too, we used to use VMS machines (some of the code is still in ADA) and we now use SUN Solaris and Intel Solaris boxes, Windows and also the odd Linux box. These days we are running Solaris on VMware. Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Our core platform is Solaris on SUN Sparc hardware Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 Thought I might give it go Lol, if you're a bit rusty on c++ give http://www.codeproject.com & http://www.codeguru.com a glance to see if there's any utilities on there that do what you want (or close), although depending on how rusty you are it may just baffle you. Are you proficient in other languages?? Quote Link to comment Share on other sites More sharing options...
Wez Posted July 27, 2007 Author Share Posted July 27, 2007 Are you proficient in other languages?? not really. Most dev work I do is web based so PHP, HTML and some JSP but only when it needs tweaking for my needs. Quote Link to comment Share on other sites More sharing options...
jevansio Posted July 27, 2007 Share Posted July 27, 2007 Not really the easiet project to ease you back into c++ PHP & C++ syntax is VERY similar so that should make things easier for you, just need to learn how to make best use of availble libraries (windows gets the windows API, STL & MFC, you won't get those with Linux but will get similar I assume). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.