public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* New to cygwin
@ 2007-11-26 17:59 Tomasz Jankowski
  2007-11-26 19:20 ` Dave Korn
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Tomasz Jankowski @ 2007-11-26 17:59 UTC (permalink / raw)
  To: cygwin

Hello!

I'm completely new to cygwin (and generally to programming for the MS
Windows too). I'm working on a library and I need to use some socket
API in it. I decided to prepare port for win32, but it's much harder,
that I thought.
I found, that cygwin can make my life easier, especially a DLL
provided by you. Generally I need cygwin only for network related
functionality, for rest I use GLib.
I have a few questions:
1. I found, that functions like sendmsg and recvmsg are available in
cygwin, is it true?
2. What about IPv6, is it available in cygwin?
3. Does cygwin in some way support some other socket options, that win32 do?
4. How does  the performance look? Will my library have really poorer
performance if I use cygwin instead of winsock API?

-- 
Cya!
Tom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: New to cygwin
  2007-11-26 17:59 New to cygwin Tomasz Jankowski
@ 2007-11-26 19:20 ` Dave Korn
  2007-11-26 19:34   ` Tomasz Jankowski
  2007-11-27  3:20 ` Erich Dollansky
  2009-02-02 10:48 ` sarshh
  2 siblings, 1 reply; 17+ messages in thread
From: Dave Korn @ 2007-11-26 19:20 UTC (permalink / raw)
  To: cygwin

On 26 November 2007 17:35, Tomasz Jankowski wrote:

> 1. I found, that functions like sendmsg and recvmsg are available in
> cygwin, is it true?

  Yep.

> 2. What about IPv6, is it available in cygwin?

  Nope, not yet, but it's under active development at the moment.

> 3. Does cygwin in some way support some other socket options, that win32 do?

  It supports the berkeley sockets API, but relies on the features of the underlying OS to implement it, so it cannot do anything that windows itself does not support (though it may be it more or less easy to access certain functionality using one API or the other).

> 4. How does  the performance look? Will my library have really poorer
> performance if I use cygwin instead of winsock API?

  There is a bit of overhead, but not a great deal; most of cygwin's implementations of the berkeley sockets APIs are just fairly thin wrappers around calls to the underlying winsock functionality that is used to implement them.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-26 19:20 ` Dave Korn
@ 2007-11-26 19:34   ` Tomasz Jankowski
  2007-11-28  1:14     ` joekrahn
  0 siblings, 1 reply; 17+ messages in thread
From: Tomasz Jankowski @ 2007-11-26 19:34 UTC (permalink / raw)
  To: cygwin

One more question, does anyone tried to build sctplib using cygwin?
Here is link to page with source code I'm talking about:

http://www.sctp.de/sctp-download.html

The most important for me is package named 'socketapi', because it
provides API documented in set of RFC documents about SCTP protocol
API. I have talked with sctplib developers and they said that so far
none had tried to build it for win32.

-- 
Cya!
Tom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-26 17:59 New to cygwin Tomasz Jankowski
  2007-11-26 19:20 ` Dave Korn
@ 2007-11-27  3:20 ` Erich Dollansky
  2007-11-27 18:27   ` Tomasz Jankowski
  2009-02-02 10:48 ` sarshh
  2 siblings, 1 reply; 17+ messages in thread
From: Erich Dollansky @ 2007-11-27  3:20 UTC (permalink / raw)
  To: cygwin

Hi,

Tomasz Jankowski wrote:
> 
> I'm completely new to cygwin (and generally to programming for the MS
> Windows too). I'm working on a library and I need to use some socket
> API in it. I decided to prepare port for win32, but it's much harder,
> that I thought.

the basic socket API of Windows and cygwin is the same based on Berkeley.

I would not recommend to use cygwin if you want to write a plain Windows 
program.

I would recommend to use cygwin if you want to write a program for 
multiple platforms.

> 4. How does  the performance look? Will my library have really poorer
> performance if I use cygwin instead of winsock API?

This is a minor problem for thinks like this.

What is your programming background?

Erich

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-27  3:20 ` Erich Dollansky
@ 2007-11-27 18:27   ` Tomasz Jankowski
  2007-11-27 22:49     ` Thorsten Kampe
  2007-11-28  7:31     ` Erich Dollansky
  0 siblings, 2 replies; 17+ messages in thread
From: Tomasz Jankowski @ 2007-11-27 18:27 UTC (permalink / raw)
  To: cygwin

2007/11/27, Erich Dollansky <oceanare@pacific.net.sg>:
>
> I would recommend to use cygwin if you want to write a program for
> multiple platforms.
That is what I'm going to do.

> What is your programming background?
Sorry I don't understand this question? What do mean by "background"? :(

-- 
Cya!
Tom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-27 18:27   ` Tomasz Jankowski
@ 2007-11-27 22:49     ` Thorsten Kampe
  2007-11-28  7:31     ` Erich Dollansky
  1 sibling, 0 replies; 17+ messages in thread
From: Thorsten Kampe @ 2007-11-27 22:49 UTC (permalink / raw)
  To: cygwin

* Tomasz Jankowski (Tue, 27 Nov 2007 17:36:16 +0100)
> 2007/11/27, Erich Dollansky <oceanare@pacific.net.sg>:
> > I would recommend to use cygwin if you want to write a program for
> > multiple platforms.
> That is what I'm going to do.
> 
> > What is your programming background?
> Sorry I don't understand this question? What do mean by
> "background"? :(

"experience"...

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-26 19:34   ` Tomasz Jankowski
@ 2007-11-28  1:14     ` joekrahn
  0 siblings, 0 replies; 17+ messages in thread
From: joekrahn @ 2007-11-28  1:14 UTC (permalink / raw)
  To: cygwin




Tomasz Jankowski wrote:
> 
> One more question, does anyone tried to build sctplib using cygwin?
> Here is link to page with source code I'm talking about:
> 
> http://www.sctp.de/sctp-download.html
> 
> The most important for me is package named 'socketapi', because it
> provides API documented in set of RFC documents about SCTP protocol
> API. I have talked with sctplib developers and they said that so far
> none had tried to build it for win32.
> 
> -- 
> Cya!
> Tom
> 

This is the very sort of thing that Cygwin was made for: using standard
POSIX code under Windows. In many cases, code can be compiled with no
changes at all. The end result is that you will have a bit of extra overhead
and a dependency on Cygwin, in exchange for very little programming effort,
and benefit from future improvements to the original library.

Joe Krahn

-- 
View this message in context: http://www.nabble.com/New-to-cygwin-tf4876592.html#a13983691
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-27 18:27   ` Tomasz Jankowski
  2007-11-27 22:49     ` Thorsten Kampe
@ 2007-11-28  7:31     ` Erich Dollansky
  1 sibling, 0 replies; 17+ messages in thread
From: Erich Dollansky @ 2007-11-28  7:31 UTC (permalink / raw)
  To: cygwin

Hi,

Tomasz Jankowski wrote:
> 2007/11/27, Erich Dollansky <oceanare@pacific.net.sg>:
>> I would recommend to use cygwin if you want to write a program for
>> multiple platforms.
> That is what I'm going to do.
> 
>> What is your programming background?
> Sorry I don't understand this question? What do mean by "background"? :(
> 
C, Pascal ..

Unix, Windows ...

Erich

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to cygwin
  2007-11-26 17:59 New to cygwin Tomasz Jankowski
  2007-11-26 19:20 ` Dave Korn
  2007-11-27  3:20 ` Erich Dollansky
@ 2009-02-02 10:48 ` sarshh
  2009-02-02 12:49   ` SCTP (was Re: New to cygwin) Corinna Vinschen
  2 siblings, 1 reply; 17+ messages in thread
From: sarshh @ 2009-02-02 10:48 UTC (permalink / raw)
  To: cygwin


Hi, can any one please guide me as I am unable to include <netinet/sctp.h>
using cygwin, what could be the problem, and what should be done to solve
it?

best Regards

Tomasz Jankowski wrote:
> 
> Hello!
> 
> I'm completely new to cygwin (and generally to programming for the MS
> Windows too). I'm working on a library and I need to use some socket
> API in it. I decided to prepare port for win32, but it's much harder,
> that I thought.
> I found, that cygwin can make my life easier, especially a DLL
> provided by you. Generally I need cygwin only for network related
> functionality, for rest I use GLib.
> I have a few questions:
> 1. I found, that functions like sendmsg and recvmsg are available in
> cygwin, is it true?
> 2. What about IPv6, is it available in cygwin?
> 3. Does cygwin in some way support some other socket options, that win32
> do?
> 4. How does  the performance look? Will my library have really poorer
> performance if I use cygwin instead of winsock API?
> 
> -- 
> Cya!
> Tom
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/New-to-cygwin-tp13954511p21787565.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* SCTP (was Re: New to cygwin)
  2009-02-02 10:48 ` sarshh
@ 2009-02-02 12:49   ` Corinna Vinschen
  0 siblings, 0 replies; 17+ messages in thread
From: Corinna Vinschen @ 2009-02-02 12:49 UTC (permalink / raw)
  To: cygwin

On Feb  2 02:48, sarshh wrote:
> Hi, can any one please guide me as I am unable to include <netinet/sctp.h>
> using cygwin, what could be the problem, and what should be done to solve
> it?

The reason for your problem is that there is no file netinet/sctp.h on
Cygwin.  The reason why there is no such file on Cygwin is that Windows does
not support the sctp protocol natively and nobody implemented sctp for
Cygwin so far.

http://cygwin.com/acronyms/#SHTDI
http://cygwin.com/acronyms/#PTC

There's a free implementation of SCTP for various platforms
under the GPL here: http://www.sctp.de/

You can try to build it for Cygwin and, ideally, maintain it for the
Cygwin net distro.  See http://cygwin.com/setup.html

> best Regards
> 
> Tomasz Jankowski wrote:
> > 
> > Hello!
> > [...]

However, there's *no* good reason to hijack an entirely unrelated thread.
If you have questions, open your own thread.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New To Cygwin
  2008-07-18  1:10 New To Cygwin mwade
@ 2008-07-18  1:47 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 17+ messages in thread
From: Larry Hall (Cygwin) @ 2008-07-18  1:47 UTC (permalink / raw)
  To: cygwin

mwade wrote:
> Hello,
> 
> I am new to cygwin and after I have installed it I ran it and try to
> traverse to different directories and every time I do I run ls or dir and I
> get command not found. Did I miss something during the install?  I start off
> in /usr/bin, but then by just typing cd I end up where I would want to,
> cygdrive/c/Documents and settings/username.
> 
> I also looked and the manual and FAQ to see if I was missing something.  I
> also looked at many of the posts on here before I asked.

I'd recommend reading and following the problem reporting guidelines,
particularly the part about *attaching* cygcheck output.  You can find
the guidelines here:

<http://cygwin.com/problems.html>

If I had to hazard a guess, it sounds like your installation didn't
complete.  If just rerunning 'setup.exe' doesn't fix the problem,
send a problem report here.

FWIW, the behavior you get when you "cd" is correct, assuming that HOME
is not set in your Windows environment and '/etc/passwd' doesn't exist
(and probably wouldn't if my guess about your installation is correct).
In this case, your home directory becomes the POSIX form of $HOMEDRIVE/
$HOMEPATH, which I'll bet maps to /cygdrive/c/Documents and settings/<your
user name> on your system.  But now I'm done trying my luck. ;-)

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* New To Cygwin
@ 2008-07-18  1:10 mwade
  2008-07-18  1:47 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 17+ messages in thread
From: mwade @ 2008-07-18  1:10 UTC (permalink / raw)
  To: cygwin


Hello,

I am new to cygwin and after I have installed it I ran it and try to
traverse to different directories and every time I do I run ls or dir and I
get command not found. Did I miss something during the install?  I start off
in /usr/bin, but then by just typing cd I end up where I would want to,
cygdrive/c/Documents and settings/username.

I also looked and the manual and FAQ to see if I was missing something.  I
also looked at many of the posts on here before I asked.

Thanks,
-- 
View this message in context: http://www.nabble.com/New-To-Cygwin-tp18520906p18520906.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: new to cygwin
  2005-12-18 22:11 new to cygwin Luke Vanderfluit
@ 2005-12-18 22:37 ` Andrew DeFaria
  0 siblings, 0 replies; 17+ messages in thread
From: Andrew DeFaria @ 2005-12-18 22:37 UTC (permalink / raw)
  To: cygwin

Luke Vanderfluit wrote:

> Hi.
> I'm new to cygwin.
> I have a few questions to start with.
>
> Can I change the font in the default command shell window?

The default command shell window is nothing more than the same default 
window you get with Start: Run: Cmd and is changed the same way.

> How do I find out which fonts are available under cygwin (eg. I'd like 
> to change the fonts that I use in vi)

The fonts that are available to Windows are available to any 
applications under Windows including Cygwin. Note, however, that the 
default window (i.e. the same default window for cmd) limits those fonts 
to only a select few. You might want to look into rxvt (and install it 
if you hadn't before). Rxvt is a terminal emulator window that can work 
both under a X server and just under Windows without an X server and 
supports -fn as well as numerous other X like ways of specifying fonts.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* new to cygwin
@ 2005-12-18 22:11 Luke Vanderfluit
  2005-12-18 22:37 ` Andrew DeFaria
  0 siblings, 1 reply; 17+ messages in thread
From: Luke Vanderfluit @ 2005-12-18 22:11 UTC (permalink / raw)
  To: cygwin

Hi.
I'm new to cygwin.
I have a few questions to start with.

Can I change the font in the default command shell window?
How do I find out which fonts are available under cygwin (eg. I'd like 
to change the fonts that I use in vi)

Thanks.
Kind regards.

-- 
Luke


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: New to CygWin
  2005-02-02  9:01 New to CygWin Cameron
@ 2005-02-02 10:03 ` Corinna Vinschen
  0 siblings, 0 replies; 17+ messages in thread
From: Corinna Vinschen @ 2005-02-02 10:03 UTC (permalink / raw)
  To: cygwin

On Feb  2 08:52, Cameron wrote:
> Hi,
> 
> I haven't quite installed it yet because I wanted to know if you can return to 
> Windows afterwards.

Who would ever want that? 

Or, wait, is that a serious question?  I can't believe it.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* New to CygWin
@ 2005-02-02  9:01 Cameron
  2005-02-02 10:03 ` Corinna Vinschen
  0 siblings, 1 reply; 17+ messages in thread
From: Cameron @ 2005-02-02  9:01 UTC (permalink / raw)
  To: cygwin

Hi,

I haven't quite installed it yet because I wanted to know if you can return to 
Windows afterwards.

Thanks!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* New to cygwin
@ 2000-06-29  9:45 Maggy Thomas
  0 siblings, 0 replies; 17+ messages in thread
From: Maggy Thomas @ 2000-06-29  9:45 UTC (permalink / raw)
  To: cygwin

Hi,

I am new to Cygwin. I want to compile c/c++ programs from vc++ environment 
using gcc. Is it possible to call like that, if so, how?

thanks,
maggy
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-02-02 12:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-26 17:59 New to cygwin Tomasz Jankowski
2007-11-26 19:20 ` Dave Korn
2007-11-26 19:34   ` Tomasz Jankowski
2007-11-28  1:14     ` joekrahn
2007-11-27  3:20 ` Erich Dollansky
2007-11-27 18:27   ` Tomasz Jankowski
2007-11-27 22:49     ` Thorsten Kampe
2007-11-28  7:31     ` Erich Dollansky
2009-02-02 10:48 ` sarshh
2009-02-02 12:49   ` SCTP (was Re: New to cygwin) Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2008-07-18  1:10 New To Cygwin mwade
2008-07-18  1:47 ` Larry Hall (Cygwin)
2005-12-18 22:11 new to cygwin Luke Vanderfluit
2005-12-18 22:37 ` Andrew DeFaria
2005-02-02  9:01 New to CygWin Cameron
2005-02-02 10:03 ` Corinna Vinschen
2000-06-29  9:45 New to cygwin Maggy Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).